import prenson from "@/components/prenson.vue";

export let r = [
  {
    path: "/",
    name: "layout",
    redirect: "/home",
    component: () => import("@/views/layout/index.vue"),
    meta: {
      title: "prenson",
      hidden: false,
      icon: "HomeFilled",
    },
    children: [
      {
        path: "/home",
        component: () => import("@/views/home/index.vue"),
        meta: {
          title: "首页",
          hidden: false,
          icon: "HomeFilled",
        },
      },
    ],
  },
  {
    path: '/screen',
    component: () => import('@/views/screen/index.vue'),
    name: 'Screen',
    meta: {
      hidden: false,
      title: '数据大屏',
      icon: 'Platform',
    },
  },
  {
    path: '/acl',
    component: () => import("@/views/layout/index.vue"),
    name: 'Acl',
    redirect: '/acl/user',
    meta: {
      hidden: false,
      title: '权限管理',
      icon: 'Lock',
    },

    children: [
      {
        path: '/acl/user',
        component: () => import('@/views/acl/user/index.vue'),
        name: 'User',
        meta: {
          hidden: false,
          title: '用户管理',
          icon: 'User',
        },
      },
      {
        path: '/acl/role',
        component: () => import('@/views/acl/role/index.vue'),
        name: 'Role',
        meta: {
          hidden: false,
          title: '角色管理',
          icon: 'UserFilled',
        },
      },
      {
        path: '/acl/permission',
        component: () => import('@/views/acl/permission/index.vue'),
        name: 'Permission',
        meta: {
          hidden: false,
          title: '菜单管理',
          icon: 'Monitor',
        },
      },
    ],
  },
  {
    path: '/product',
    component: () => import("@/views/layout/index.vue"),
    name: 'Product',
    meta: {
      title: '商品管理',
      icon: 'Goods',
    },
    redirect: '/product/trademark',
    children: [
      {
        path: '/product/trademark',
        component: () => import('@/views/product/trademark/index.vue'),
        name: 'Trademark',
        meta: {
          title: '品牌管理',
          icon: 'ShoppingCartFull',
        },
      },
      {
        path: '/product/attr',
        component: () => import('@/views/product/attr/index.vue'),
        name: 'Attr',
        meta: {
          title: '属性管理',
          icon: 'ChromeFilled',
        },
      },
      {
        path: '/product/spu',
        component: () => import('@/views/product/spu/index.vue'),
        name: 'Spu',
        meta: {
          title: 'SPU管理',
          icon: 'Calendar',
        },
      },
      {
        path: '/product/sku',
        component: () => import('@/views/product/sku/index.vue'),
        name: 'Sku',
        meta: {
          title: 'SKU管理',
          icon: 'Orange',
        },
      },
    ],
  },
  {
    path: "/prenson",
    name: "prenson",
    component: prenson,
    meta: {
      title: "prenson",
      hidden: false,
      icon: "HomeFilled",
    },
  },


  {
    path: "/main",
    name: "main",
    component: () => import("@/views/main/index.vue"),
    meta: {
      title: "main",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/px-rem",
    name: "px-rem",
    component: () => import("@/components/px-rem/index.vue"),
    meta: {
      title: "px-rem",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/baseApp",
    name: "baseApp",
    component: () => import("@/components/baseApp/index.vue"),
    meta: {
      title: "baseApp",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/exceljsDemo",
    name: "exceljsDemo",
    component: () => import("@/components/exceljsDemo/index.vue"),
    meta: {
      title: "exceljsDemo",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/about",
    name: "About",
    component: () => import("@/components/about/index.vue"),
    meta: {
      title: "About",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/VirtualTreeSelect",
    name: "VirtualTreeSelect",
    component: () => import("@/components/VirtualTreeSelect/index.vue"),
    meta: {
      title: "VirtualTreeSelect",
      hidden: false,
      icon: "HomeFilled",
    },
  },

  {
    path: "/slotStudy",
    name: "slotStudy",
    component: () => import("@/components/slotStudy/index.vue"),
    meta: {
      title: "slotStudy",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/vxeSelect",
    name: "vxeSelect",
    component: () => import("@/components/vxeSelect/index.vue"),
    meta: {
      title: "vxeSelect",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/axios",
    name: "axios",
    component: () => import("@/components/axios/index.vue"),
    meta: {
      title: "axios",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/:pathMatch(.*)*",
    name: "404",
    component: () => import("@/views/404/index.vue"),
    meta: {
      title: "404",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/elementPlusSelect",
    name: "elementPlusSelect",
    component: () => import("@/components/elementPlusSelect/index.vue"),
    meta: {
      title: "elementPlusSelect",
      hidden: false,
      icon: "HomeFilled",
    },
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/components/login/index.vue"),
    meta: {
      title: "login",
      hidden: false,
      icon: "HomeFilled",
    },
  },

];
